package crp.core.workflow.domain.models;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;


@Getter
@Setter
public class WorkflowDefinitionNode {
    private String id;
    private String name;
    private boolean autocomplete;
    private String candidate;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        WorkflowDefinitionNode that = (WorkflowDefinitionNode) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
